home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Borland Plateform / TURBO PASCAL 1.5 for WIN / TDWDOC.PAK / README.TDW < prev    next >
Encoding:
Text File  |  1992-06-08  |  18.7 KB  |  453 lines

  1.  
  2.                 Turbo Debugger for Windows Release Notes
  3.                 ----------------------------------------
  4.  
  5. This file contains important, last-minute information about Turbo Debugger
  6. for Windows.
  7.  
  8.  
  9. TABLE OF CONTENTS
  10. -----------------
  11. 1. Debugging Multiple Applications under Turbo Debugger for Windows
  12. 2. TDW.INI, the Windows initialization file for TDW
  13. 3. Using TDW in Dual Monitor Mode from TPW
  14. 4. Using TDW in Dual Monochrome Monitor Mode
  15. 5. Known Problems
  16.  
  17.  
  18. 1. Debugging Multiple Applications under Turbo Debugger for Windows
  19. ===================================================================
  20.  
  21.      You can debug multiple applications under TDW as follows:
  22.  
  23.        1. Load the first program to be debugged into TDW.
  24.   
  25.        2. Once the application is loaded, press the F3 key to display the
  26.           Load Module Source or DLL Symbols dialog box.
  27.   
  28.        3. In the DLL Name text entry box, enter the name of the .EXE or
  29.           DLL to add. If the .EXE or DLL resides in another directory, you
  30.           need to provide the full path.
  31.   
  32.        4. Press the Enter key. TDW adds the program name to the
  33.           DLLs & Programs list box and puts the !! symbol after it.
  34.   
  35.        5. Close the Load Module Source or DLL dialog box, return to the Module
  36.           window, and set any necessary breakpoints in the first program.
  37.   
  38.        6. Press F9 to run the first program.
  39.   
  40.        7. Switch to the Windows Program Manager while the first program
  41.           is running and run the second program in the usual way.
  42.   
  43.        8. You see the display switch back to TDW with the CPU window
  44.           showing the start-up information of the second application.
  45.           Close the CPU window.
  46.   
  47.        9. In the Module window, set any necessary breakpoints in the second
  48.           application, then press the F9 key to run it.
  49.  
  50.      This method is useful for debugging DDE conversations or any other
  51.      inter-program communication in the Windows environment.
  52.  
  53.  
  54. 2. TDW.INI, the Windows initialization file for TDW
  55. ===================================================
  56.     TDW.INI is located in your local Windows directory. It is the 
  57.     Windows initialization file used by TDW. TDW.INI specifies the 
  58.     name and location of the Debugger DLL and the video driver DLL 
  59.     (if any) in the [TurboDebugger] section. It can also contain 
  60.     a [VideoOptions] section, where you put settings for the video DLL,
  61.     if any.
  62.   
  63.     [TurboDebugger] section
  64.     -----------------------
  65.       WINDEBUG.DLL has been replaced by TDWIN.DLL. TDWIN.DLL can be
  66.       located anywhere you wish (usually the main Windows
  67.       directory).  The DebuggerDLL entry must specify the full path
  68.       to TDWIN.DLL.
  69.       
  70.       For example, if TDWIN.DLL is in the WINDOWS3.1 directory, its
  71.       TDW.INI entry is 
  72.       
  73.           [TurboDebugger]
  74.           DebuggerDLL=c:\windows3.1\tdwin.dll
  75.       
  76.       The VideoDLL entry indicates a video support DLL for 8514 or
  77.       Super VGA, because TDW doesn't support these video modes by
  78.       default. This entry must specify the full path to the DLL.
  79.       You can set various video  options for the DLL in the
  80.       [VideoOptions] section.  See the next section for a complete
  81.       explanation of video DLL and options settings.
  82.  
  83.     
  84.     SVGA support, the VideoDLL entry, and the [VideoOptions] section
  85.     ----------------------------------------------------------------
  86.       TDW handles most of the popular 2, 4, 16, and 256-color 
  87.       high-resolution Super VGA modes. If your card isn't supported 
  88.       correctly, you need to use a special Super VGA (SVGA) DLL.
  89.   
  90.       Currently, six DLLs are supplied with your language compiler to 
  91.       support various SVGA and 8514 video cards and modes. These DLLs are
  92.       described in the next section. For information on how to specify the
  93.       Video DLL or its options, see the sections "The VideoDLL entry" and 
  94.       "The [VideoOptions] section," which follow the "Video DLLs" section.
  95.  
  96.     
  97.       Video DLLs
  98.       ----------
  99.         All the video DLLs described in this section are designed to work 
  100.         with the most current Windows screen drivers for your video card.  If 
  101.         you're not sure if you're using the latest drivers, contact your video 
  102.         card manufacturer for more information.
  103.   
  104.         From time to time we have new DLLs for new video cards. These DLLs,
  105.         when available, can be downloaded from Compuserve, BIX, GEnie, and our
  106.         local BBS (408-439-9096). As new video cards and modes appear on the
  107.         market, we will be creating new DLLs for them. If the card you use
  108.         isn't supported by one of our DLLs, please contact Tech Support for
  109.         the latest video DLL information.  Our main Tech Support phone number
  110.         is 408-438-5300.
  111.  
  112.  
  113.         ATI.DLL
  114.         -------
  115.           Works with the ATI VGA Wonder and XL cards in certain video modes.
  116.     
  117.           The latest ATI Drivers from ATI Technologies Inc. require the
  118.           following TDW.INI file entries:
  119.       
  120.       
  121.                Resolution   ATI.DLL  Int2FAssist
  122.              -----------------------------------
  123.              | 640X480    | Yes     |   Yes    |
  124.              -----------------------------------
  125.              | 800X600    | Yes     |   Yes    |
  126.              -----------------------------------
  127.              | 1024X768   | No      |    No    | 
  128.              -----------------------------------
  129.    
  130.           EXPLANATION: ATI.DLL is required in all video modes except 
  131.           1024 X 768 (this mode is directly supported by TDW). When the 
  132.           DLL is used (VideoDLL=ATI.DLL), Int2FAssist should be set to 
  133.           "yes" in the [VideoOptions] section.
  134.  
  135.  
  136.  
  137.         TSENG.DLL
  138.         ---------
  139.           Supports TSENG ET-3000 /ET-4000 based cards in certain 
  140.           video modes.
  141.   
  142.           The latest TSENG drivers are available from the Microsoft
  143.           Windows Driver Library on Comp-U-Serve. They require the 
  144.           following TDW.INI file settings:
  145.       
  146.       
  147.               Resolution   TSENG.DLL   Int2FAssist
  148.              -------------------------------------
  149.              | 640X480    | Yes       |   Yes    |
  150.              -------------------------------------
  151.              | 800X600    | No        |    No    |
  152.              -------------------------------------
  153.              | 1024X768   | No        |    No    |
  154.              -------------------------------------
  155.     
  156.           EXPLANATION: TSENG.DLL should only be used with 640 X 480 X 256 
  157.           resolution (set VideoDLL=TSENG.DLL and put a Int2FAssist="Yes" 
  158.           entry in the [VideoOptions] section). TDW directly supports the 
  159.           other TSENG resolutions.
  160.       
  161.  
  162.  
  163.         TDVESA.DLL
  164.         ----------
  165.           Supports any video card that does VESA emulation, whether
  166.           through a TSR or video card firmware. Use this DLL with
  167.           all resolution settings.
  168.     
  169.               NOTE: You can run VESATEST.EXE from either DOS or 
  170.               Windows to see if your system provides the proper 
  171.               VESA functions. If the emulation is not loaded, TDW 
  172.               will display an error message indicating that the 
  173.               video DLL is not supported by the current configuration.
  174.   
  175.           The TDVESA.DLL has been tested with the following video 
  176.           cards:      
  177.         
  178.             o Video Seven VRAM II--uses V7VESA TSR supplied with card
  179.   
  180.             o Weitek Power Windows--emulates VESA with firmware.
  181.   
  182.   
  183.         DUAL8514.DLL 
  184.         ------------- 
  185.           Supports any dual-screen 8514 cards.  This DLL is only for 
  186.           systems that have two-color monitors, one attached to the VGA
  187.           card and one attached to the 8415/A card.  It speeds up 
  188.           performance by preventing TDW from doing some things that 
  189.           aren't required in dual-monitor mode.
  190.   
  191.               NOTE: Using this DLL is not the same as invoking TDW
  192.               with the -do parameter, which only specifies using a
  193.               monochrome screen.
  194.   
  195.       
  196.         STB.DLL
  197.         -------
  198.           Supports the MVP2 series of multi-screen video cards.
  199.   
  200.   
  201.         ULTRA.DLL
  202.         ---------
  203.           Supports the ATI 8514 Ultra and Vantage graphics cards 
  204.           (8514/Ultra, 8514/Vantage, Graphics/Ultra, and Graphics/Vantage)
  205.           and 8514-based cards configured for a single monitor (including
  206.           the IBM 8514/A card). If you use this DLL with an IBM 8514/A card,
  207.           set "ATI=no" in the [VideoOptions] section of TDW.INI.
  208.  
  209.  
  210.     The VideoDLL entry
  211.     ------------------
  212.       To use an SVGA DLL, simply edit the TDW.INI file that the installation
  213.       program puts in your main Windows directory. You can modify TDW.INI
  214.       with any ASCII text editor. Under the section heading [TurboDebugger]
  215.       there is an option called "VideoDLL". This entry should equal the
  216.       path and filename of the DLL you want to use for SVGA support (see the
  217.       example later in this file).
  218.   
  219.       If there is an error loading the DLL or if the DLL doesn't support the
  220.       selected card or mode, TDW reports the error in a Windows dialog box.
  221.       When this happens, TDW unloads it and exits. If this situation occurs,
  222.       remove the DLL's name from the VideoDLL line in the TDW.INI file
  223.       or select a video mode that is supported by that DLL.
  224.  
  225.  
  226.     The [VideoOptions] section
  227.     --------------------------
  228.       There are also options you can set for the current video DLL.  You list
  229.       these options under the [VideoOptions] heading in any order you like.
  230.   
  231.       The following list shows all the video options:
  232.     
  233.         o SaveWholeScreen    --    default = no
  234.         o Int2FAssist        --    default = no
  235.         o DebugFile          --    default = <blank>
  236.         o IgnoreMode         --    default = no
  237.         o ATI                --    default = yes
  238.         o Rows               --    default = 25
  239.         o RestoreTextScreen  --    default = yes
  240.     
  241.       DebugFile can be either blank or set to a specific filename. The other
  242.       four settings must be either 'yes' or 'no'.  Rows must be 25 or 50.
  243.  
  244.  
  245.       SaveWholeScreen   (ATI, TSENG, TDVESA)
  246.       ---------------
  247.         This option, normally set to "no", determines whether the entire 
  248.         screen (512k - 64k from 8 planes) is saved (the entire graphics 
  249.         screen is cleared when switching to it) or if only the top 32K of 
  250.         planes 0 through 3 is saved (the entire screen is NOT cleared when 
  251.         switching modes.)
  252.       
  253.         Saving the whole screen is not usually necessary, but is provided
  254.         in case you're using a nonstandard card that requires that the whole
  255.         screen be saved.  It also provides support for the Alt-F5 key
  256.         combination under the Int2FAssist mode.
  257.   
  258.       
  259.       Int2FAssist  (ATI, TSENG)
  260.       -----------
  261.         This option, normally set to "no", tells the DLL to make a 
  262.         special Int 2F call before switching video modes. This call 
  263.         tells the current Windows screen driver what's happening. 
  264.         The desired effect of this call is to make Windows tell all 
  265.         of its child windows to repaint themselves. This option is 
  266.         provided mainly to support some ATI Wonder and TSENG chip set 
  267.         video modes.
  268.  
  269.     
  270.       DebugFile   (ALL DLLs)
  271.       ---------
  272.         The video DLL normally doesn't log any debugging information. If
  273.         you're having problems using a particular DLL, you can use the 
  274.         DebugFile option to specify the path and filename of a log file. 
  275.         You can use the information logged to this file if you need to 
  276.         contact Borland's Technical Support.
  277.       
  278.         The information logged is:
  279.       
  280.           o the date and time you ran TDW
  281.           o the version & location of the DLL
  282.           o the name of the current Windows screen driver
  283.           o the state of all TDW.INI options
  284.           o a listing of all calls and parameters to the DLL's functions
  285.   
  286.     
  287.       IgnoreMode   (ATI, TSENG)
  288.       ----------
  289.         This option only applies when the video DLL is ATI.DLL or TSENG.DLL.
  290.         It tells the DLL to not do any mode or card checking and to force the
  291.         Int2FAssist option on.  This option is useful for cards that aren't
  292.         directly supported by an official DLL yet, such as Paradise, Video-7,
  293.         Trident, or any other video card without a graphics coprocessor.
  294.         With this option enabled, the functionality is identical to the
  295.         temporary ALL.DLL that we offered in the past.
  296.  
  297.     
  298.       ATI   (ULTRA)
  299.       ---
  300.         This option is only used by ULTRA.DLL and is on by default.  If you
  301.         disable it (ATI=no), you can use ULTRA.DLL on regular IBM 8514/A 
  302.         cards.
  303.     
  304.     
  305.       ROWS  (ALL DLLs)
  306.       ----
  307.         This option is only used if you use a configuration file to set 
  308.         the number of rows to 43/50 from 25. If you choose to have TDW 
  309.         start in 50-line mode, set the Rows option to 50 in the TDW.INI file.
  310.     
  311.     
  312.       RestoreTextScreen   (DUAL8514, STB)
  313.       -----------------
  314.         This option is only valid with the DUAL8514 and STB DLLs.  The valid
  315.         options are:
  316.   
  317.           o Yes    - restores the debugger's screen after exiting.
  318.           o No     - does not touch the debugger's screen at all.
  319.           o Clear  - forces the screen to clear upon exiting TDW.
  320.     
  321.     
  322.     Video DLL example
  323.     -----------------
  324.       If you have an ATI VGA Wonder card and you want it to save
  325.       the entire  screen and log information to a file named
  326.       C:\WINDOWS\TDVIDEO.LOG,  the TDW.INI file will look something
  327.       like this:
  328.       
  329.           [TurboDebugger]
  330.           DebuggerDLL=c:\windows3.1\tdwin.dll
  331.           VideoDLL=c:\borlandc\bin\ati.dll
  332.         
  333.           [VideoOptions]
  334.           SaveWholeScreen=yes
  335.           DebugFile=c:\windows\tdvideo.log
  336.     
  337.   
  338.     Technical information
  339.     ---------------------
  340.       TDW, upon loading, looks for the video DLL in the following 
  341.       locations in the following order:
  342.   
  343.         1. The same directory TDW is running from
  344.   
  345.         2. The Windows main directory
  346.   
  347.         3. The location specified in TDW.INI
  348.  
  349.  
  350.       If it finds the file, TDW accesses the DLL as needed. TDW makes 
  351.       calls to the DLL to handle the entire video screen-switching 
  352.       context. The DLL accomplishes the screen switching by allocating 
  353.       a buffer as it gets loaded. Graphics screen contents are then 
  354.       saved to this buffer when TDW enters text mode. The DLL restores 
  355.       the graphics screen from this buffer when TDW exits text mode. 
  356.       Memory allocated for the buffer is freed when the DLL is unloaded.
  357.       
  358.         
  359.     Seeing the user screen of an application
  360.     ----------------------------------------
  361.       Some video modes might require some special handling. The Int2FAssist 
  362.       option allows these modes to work correctly on most systems. The 
  363.       behavior is as follows: 
  364.   
  365.       When you set "Int2FAssist=yes", the DLL informs Windows to tell 
  366.       all sub-windows on the screen to repaint themselves while the user 
  367.       application is running. This allows the user screen to be viewed 
  368.       when stepping, tracing, or running your application. It will not, 
  369.       however, switch to the user screen when you press the Alt-F5 key 
  370.       combination because TDW is still in control (TDW doesn't allow Windows 
  371.       to process any messages at this point.)
  372.   
  373.       If you also set "SaveWholeScreen=yes", pressing the Alt-F5 key 
  374.       combination shows the user screen. (The DLL will now copy the screen 
  375.       back for you.) The drawback to enabling SaveWholeScreen is that it 
  376.       will take longer to step or trace if TDW needs to switch back to 
  377.       the user screen for that particular instruction. Also, extra messages 
  378.       will be passed to your application that normally wouldn't be passed. 
  379.       This may affect the debugging of certain pieces of code (like finding 
  380.       a bug in an owner-draw control). In these cases, you won't want to use 
  381.       this option on the current video mode.
  382.  
  383.  
  384. 3. Using TDW in Dual Monitor Mode from TPW
  385. ==========================================
  386.     If you run TDW from TPW, you can use dual monitor mode only if you add
  387.     the following section to your TPW.INI file:
  388.  
  389.        [Debugger]
  390.        ExePath=c:\tpw\
  391.        Switches=-do
  392.  
  393.  
  394. 4. Using TDW in Dual Monitor Monochrome Mode
  395. ============================================
  396.      If TDW is activated using the -do switch, there is no need for 
  397.      a value in the VideoDLL entry of TDW.INI. The VideoDLL entry
  398.      should be empty, as follows:
  399.  
  400.        [Debugger]
  401.        VideoDLL=
  402.  
  403.  
  404. 5. Known Problems
  405. =================
  406.  
  407.     o The first time a program is run under TDW, mouse messages are
  408.       processed normally. However, on every subsequent execution of that
  409.       program, you must press a key on the keyboard before mouse messages can
  410.       be processed.
  411.  
  412.     o TSENG ET-4000 problems
  413.  
  414.       Under Windows 3.1, if you use the standard Windows VGA or SuperVga
  415.       driver with a video card that uses the TSENG ET-4000 chip set, you
  416.       might encounter a number of problems with running the debugger on a
  417.       single screen.
  418.     
  419.       - The hardware cursor (the white cursor displayed in all dialog boxes
  420.         that require text input) is invisible, but you can still debug your
  421.         program.
  422.     
  423.       - On certain TSENG 4000-based cards (such as the Diamond Speedstar VGA
  424.         card), when you launch TDW the default character set is replaced by
  425.         graphic characters.
  426.     
  427.         To overcome this problem, contact Microsoft Corp and ask for the
  428.         updated TSENG drivers that were not shipped with Windows 3.1. They 
  429.         are also available on CompuServe in the Microsoft Forum (GO MSOFT) 
  430.         under the Microsoft Software Library heading. The drivers are
  431.     
  432.           Filename       Date
  433.           --------       ----
  434.           TSENG1.EXE     4/6/92
  435.           TSENG2.EXE     4/6/92
  436.           TSENG3.EXE     4/6/92
  437.           TSENG4.EXE     4/6/92
  438.     
  439.     
  440.         In the meantime, you can use one of the following alternatives:
  441.     
  442.         o Run Windows Setup and replace your Windows 3.1 VGA or SVGA driver
  443.           with the Version 3.0 VGA driver supplied with Windows 3.1.
  444.     
  445.         o Start TDW from the DOS command line. For example,
  446.     
  447.             WIN TDW myprog
  448.     
  449.         o Each time you launch Windows, run a full screen DOS session and 
  450.           type "exit" to close it. After you do this, when you run TDW, it 
  451.           will use the correct character set.
  452.     
  453.